package com.ftx.dao.util;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 * Created by fengtingxin on 2019/5/28.
 */

public class JDBCUtils {


    // JDBC 驱动名及数据库 URL
    static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
    static final String DB_URL = "jdbc:mysql://192.168.166.30:3359/fuwu_market";

    // 数据库的用户名与密码，需要根据自己的设置
    static final String USER = "pop_crm_rw";
    static final String PASS = "pop_crm_rw3ed";


    public static Connection getConnection(){
        try{
            Class.forName(JDBC_DRIVER);
            return DriverManager.getConnection(DB_URL,USER,PASS);
        }catch (Exception e){
            System.out.println(e);
        }
        return null;
    }
}
